package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.disperseGold.DisperseGoldInfo;
import com.yanqu.road.entity.disperseGold.DisperseGoldRecord;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class UserDisperseGoldBussiness {
    public static Map<Long, List<DisperseGoldInfo>> getDisperseGoldMap() {
        return DaoHelper.getDisperseGoldDaoImpl().getDisperseGoldMap();
    }

    public static boolean addDisperseGold(DisperseGoldInfo disperseGoldInfo) {
        return DaoHelper.getDisperseGoldDaoImpl().add(disperseGoldInfo);
    }

    public static boolean updateDisperseGold(DisperseGoldInfo disperseGoldInfo) {
        return DaoHelper.getDisperseGoldDaoImpl().update(disperseGoldInfo);
    }

    public static Long getMaxDisperseId(long serverId) {
        return DaoHelper.getDisperseGoldDaoImpl().getMaxDisperseId(serverId);
    }

    public static Map<Long, DisperseGoldRecord> getDisperseGoldRecordMap(long userId) {
        return DaoHelper.getDisperseGoldRecordDaoImpl().getDisperseGoldRecordMap(userId);
    }

    public static boolean addDisperseGoldRecord(DisperseGoldRecord record) {
        return DaoHelper.getDisperseGoldRecordDaoImpl().add(record);
    }

    public static boolean updateDisperseGoldRecord(DisperseGoldRecord record) {
        return DaoHelper.getDisperseGoldRecordDaoImpl().update(record);
    }

}
